function findCsrlDay7(ITEM_NBR, CSRL_DAY7, TRAIT_STORE_NBR, NEW_RETAIL_EFF_DATE, TRAIT_STORE_FLAG, AR_TR_FALG) {
    var sevenEff = dateAddOrReduceDays(NEW_RETAIL_EFF_DATE, 6, true);
    var sevenList = [];
    var JSON_CSRL_7_LIST = !isNull(CSRL_DAY7) ? JSON.parse(find_Item_inCSRL(ITEM_NBR, CSRL_DAY7)) : [];
    for (var i = 0; i < JSON_CSRL_7_LIST.length; i++) {
        var csrl = JSON_CSRL_7_LIST[i];
        if (AR_TR_FALG) {
            if (TRAIT_STORE_FLAG === "T") {
                if (isARTR(csrl.PRICE_TYPE)
                    && !isNull(csrl.PRICE_TRAIT)
                    && (csrl.PRICE_TRAIT == 45 || TRAIT_STORE_NBR == csrl.PRICE_TRAIT)
                    && isDateIntersection_Min(sevenEff, NEW_RETAIL_EFF_DATE, csrl.EFFECTIVE_DATE, csrl.EXPIRATION_DATE)) {
                    sevenList.push(csrl)
                }
            } else {
                if (isARTR(csrl.PRICE_TYPE)
                    && !isNull(csrl.PRICE_TRAIT)
                    && csrl.PRICE_TRAIT == 45
                    && isDateIntersection_Min(sevenEff, NEW_RETAIL_EFF_DATE, csrl.EFFECTIVE_DATE, csrl.EXPIRATION_DATE)) {
                    sevenList.push(csrl)
                }
            }
        } else {
            if (TRAIT_STORE_FLAG === "T") {
                if ((csrl.PRICE_TYPE === 'BP' || csrl.PRICE_TYPE === 'SB')
                    && !isNull(csrl.PRICE_TRAIT)
                    && (TRAIT_STORE_NBR == csrl.PRICE_TRAIT)
                    && isDateIntersection_Min(sevenEff, NEW_RETAIL_EFF_DATE, csrl.EFFECTIVE_DATE, csrl.EXPIRATION_DATE)) {
                    sevenList.push(csrl)
                }
            } else {
                if ((csrl.PRICE_TYPE === 'BP' || csrl.PRICE_TYPE === 'SB')
                    && csrl.PRICE_TRAIT == 45
                    && isDateIntersection_Min(sevenEff, NEW_RETAIL_EFF_DATE, csrl.EFFECTIVE_DATE, csrl.EXPIRATION_DATE)) {
                    sevenList.push(csrl)
                }
            }
        }
    }
    if (!AR_TR_FALG
        && TRAIT_STORE_FLAG === "T"
        && TRAIT_STORE_NBR !== 45
        && sevenList.length === 0) {
        for (var y = 0; y < JSON_CSRL_7_LIST.length; y++) {
            var csrlY = JSON_CSRL_7_LIST[y];
            if ((csrlY.PRICE_TYPE === 'BP')
                && !isNull(csrlY.PRICE_TRAIT)
                && (csrlY.PRICE_TRAIT == 45)
                && isDateIntersection_Min(sevenEff, NEW_RETAIL_EFF_DATE, csrlY.EFFECTIVE_DATE, csrlY.EXPIRATION_DATE)) {
                sevenList.push(csrlY)
            }
        }
    }
    return sevenList;
}
